package com.aisino.entity;

import lombok.Data;

import java.util.List;

@Data
public class TreeNode {
    /**
     * 节点id
     */
    private Integer id;
    /**
     * 节点名称
     */
    private String name;
    /**
     *  父节点id
     */
    private Integer parentId;
    /**
     * 子节点
     */
    private List<TreeNode> childList;
    public TreeNode() {
    }
    public TreeNode(Integer id, String name, Integer parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }
}